# The module Element, includes all the page elements (icons, links, buttons,text_fields, checkboxes, select lists, dialog-boxes)
require 'watir'
require 'watir/testcase'
require File.dirname(__FILE__)+'/../../std_lib.rb'

module Element

    class Navigator
        def self.workflow_user_link
            return $ie.link(:text,"@Workflow User")
        end
        def self.amer_employee_ss_link
            return $ie.link(:text,"AMER Employee Self-Service")
        end
        def self.amer_quote_link
            return $ie.link(:text,"AMER Oracle HTML Quoting Sales Agent")
        end
        def self.cdn_quote_link
            return $ie.link(:text,"CDN Oracle HTML Quoting Sales Agent")
        end
        def self.amer_receivables_manager_link
            return $ie.link(:text,"AMER Receivables Manager")
        end
        def self.cdn_receivables_manager_link
            return $ie.link(:text,"CDN Receivables Manager")
        end
        def self.oracle_online_user_link
            return $ie.link(:text,"Oracle Customers Online User")
        end
    end
    class Header_Link
#        @@ie = $ie.div(:id,"header")
        def self.logout_link
            return $ie.link(:text=>"Logout",:index=>1)
        end
        def self.perferences_link
            return $ie.link(:text=>"Preferences",:index=>1)
        end
        def self.help_link
            return $ie.link(:text=>"Help",:index=>1)
        end

    end
    class Buttons
        def homepage_full_list_button
            return $ie.button(:text,"Full List")
        end
        def favorites_personalize_button
            return $ie.button(:text=>"Personalize",:index =>1)
        end
        def navigator_personalize_button
            return $ie.button(:text=>"Personalize",:index =>2)
        end
    end
end